package com.fireowlf.springboot;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class JsonController {
	
	/**
	 * 默认使用的是jackson包来解析的包
	 * @return
	 */
	@RequestMapping("/jackson")
	public MyBean testjson(){
		MyBean bean = new MyBean();
		bean.setName("狼少");
		bean.setAge(23);
		bean.setNote("帅2！");
		bean.setOther("other");
		return bean;
	}
	
	@RequestMapping("/json")
	public MyBean testjson2(){
		MyBean bean = new MyBean();
		bean.setName("狼少");
		bean.setAge(23);
		bean.setNote("帅2！");
		bean.setOther("other");
		return bean;
	}
	
	@RequestMapping("hotdeployee")
	public String hotdeployee(){
		return "hot deployee";
	}
	
}
